import type { RouteRecordRaw } from 'vue-router'

// 将管理员路由改为数组，包含所有管理员相关的一级菜单
export const adminRoute: RouteRecordRaw[] = [
    {
        path: '/admin/class_manage',
        component: () => import('@/layout/index.vue'),
        name: 'ClassManage',
        meta: {
            title: '班级管理',
            hidden: false,
            icon: 'House'
        },
        children: [
            {
                path: '',
                component: () => import('@/views/admin/class-manage/index.vue'),
                meta: {
                    title: '班级管理',
                    hidden: true
                }
            }
        ]
    },
    {
        path: '/admin/group_manage',
        component: () => import('@/layout/index.vue'),
        name: 'AdminGroupManage',
        meta: {
            title: '小组管理',
            hidden: false,
            icon: 'Message'
        },
        children: [
            {
                path: '',
                component: () => import('@/views/admin/group-manage/index.vue'),
                meta: {
                    title: '小组管理',
                    hidden: true
                }
            }
        ]
    },
    {
        path: '/admin/student_manage',
        component: () => import('@/layout/index.vue'),
        name: 'StudentManage',
        meta: {
            title: '学生管理',
            hidden: false,
            icon: 'User'
        },
        children: [
            {
                path: '',
                component: () => import('@/views/admin/student-manage/index.vue'),
                meta: {
                    title: '学生管理',
                    hidden: true
                }
            }
        ]
    },
    {
        path: '/admin/info',
        component: () => import('@/layout/index.vue'),
        name: 'AdminInfo',
        meta: {
            title: '个人信息',
            hidden: false,
            icon: 'User'
        },
        children: [
            {
                path: '',
                component: () => import('@/views/admin/info/index.vue'),
                meta: {
                    title: '个人信息',
                    hidden: true
                }
            }
        ]
    }
]